<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<table class="cntable table table-bordered dataTable table-accountDetail">
	<thead>
		<tr>
			<th style="width:50px">序号</th>
			<th data-sortable="true" data-field="userIdentity" style="width:130px">会员号</th>
			<th style="width:100px">账户号</th>
			<th style="width:100px">交易单号</th>
			<th style="width:100px">交易类型</th>
			<th style="width:100px">收入/支出</th>
			<th style="width:130px">交易金额</th>
			<th data-sortable="true" data-field="time" style="width:130px">交易时间</th>
			<th style="width:80px">剩余金额</th>			
		</tr>
	</thead>
	<tbody>
		<c:forEach var="accountDetail" items="${accountDetails}" varStatus="status">
			<tr data-id="${accountDetail.id}">
				<td>${status.index+1}</td>
				<td>${accountDetail.userIdentity}</td>
				<td>${accountDetail.accountNo}</td>
				<td>${accountDetail.serviceId}</td>
				<td>
				    <t:provider packageName="acc" enumClassName="MoneyType" value="${accountDetail.moneyType}"/> 		
				</td>
				<td>
				    <t:provider packageName="acc" enumClassName="State" value="${accountDetail.state}"/> 		
				</td>
				<td>
					<fmt:formatNumber value="${accountDetail.money}" pattern="#.##" minFractionDigits="2" />
				</td>
				<td><fmt:formatDate value="${accountDetail.time}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
				<td>
					<fmt:formatNumber value="${accountDetail.balance}" pattern="#.##" minFractionDigits="2" />
				</td>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th">
				<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>